package com.bjgzy.rating.di.component;

import com.bjgzy.rating.di.module.SignUpModule;
import com.bjgzy.rating.mvp.contract.SignUpContract;
import com.bjgzy.rating.mvp.ui.activity.SignUp1Activity;
import com.bjgzy.rating.mvp.ui.activity.SignUp2Activity;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.di.scope.ActivityScope;

import dagger.BindsInstance;
import dagger.Component;

/**
 * @author xubo
 * @date 2018-8-9 11:43:59
 */
@ActivityScope
@Component(modules = SignUpModule.class, dependencies = AppComponent.class)
public interface SignUpComponent {
    void inject(SignUp1Activity activity);
    void inject(SignUp2Activity activity);


    @Component.Builder
    interface Builder {
        @BindsInstance
        SignUpComponent.Builder view(SignUpContract.View view);

        SignUpComponent.Builder appComponent(AppComponent appComponent);

        SignUpComponent build();
    }


}